#import <UIKit/UIKit.h>

@class ClipImageViewController;

@protocol ClipImageDelegate <NSObject>

- (void)imageCropper:(ClipImageViewController *)clipViewController didFinished:(UIImage *)editedImage;
- (void)imageCropperDidCancel:(ClipImageViewController *)clipViewController;

@end

@interface ClipImageViewController : UIViewController

@property (nonatomic, assign) NSInteger tag;
@property (nonatomic, weak) id<ClipImageDelegate> delegate;
@property (nonatomic, assign) CGRect cropFrame;
@property (nonatomic, assign) int aspectType;

- (instancetype)initWithImage:(UIImage *)originalImage cropFrame:(CGRect)cropFrame limitScaleRatio:(NSInteger)limitRatio;

@end
